package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 支付订单参数
 *  +----------------------------------------------------------------------
 *  | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 *  +----------------------------------------------------------------------
 *  | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
 *  +----------------------------------------------------------------------
 *  | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 *  +----------------------------------------------------------------------
 *  | Author: CRMEB Team <admin@crmeb.com>
 *  +----------------------------------------------------------------------
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="InvoiceRequest对象", description="开具发票")
public class InvoiceRequest implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单id")
    @NotNull(message = "订单id不能为空")
    private String orderId;

    @ApiModelProperty(value = "购买方名称")
    @NotNull(message = "购买方名称不能为空")
    private String customerName;

    @ApiModelProperty(value = "购买方税号")
    @NotNull(message = "购买方税号不能为空")
    private String customerTaxpayerNumber;

    @ApiModelProperty(value = "税率")
    @NotNull(message = "税率不能为空")
    private BigDecimal taxRate;

}
